{extends file="layout.tpl"}
{block name="content"}
<div class="box-content box-list-game">
	<div class="detail-title clr _bdot _mp20">
			<span class="fl strong _f11">
				{$page_title} <img alt="" src="{url path="images/navRow.png"}">
			</span>
			<span class="fr _cl9 _f11">
				{$new['date']}
			</span>
		</div>
		<div class="mcontent">
			<ol class="g-list clr">
			{$i=0}
			{foreach $games as $game}
				<li class="g-item{if (($i++)%2==0)} g-event{/if} {if ($i==count($games))} g-last{/if}">
					<div class="g-row">
						<div class="g-index">
							<div class="g-image">
								<a title="{$game['name']}" href="{site_url($game['link'])}">
									<img alt="{$game['name']}" src="{base_url($game['image'])}" width="50px" height="50px" />
								</a>
							</div>
							<div class="g-data">
								<ol>
									<li class="g-data-name">
										<h2>
											<a title="{$game['name']}"  class="strong" href="{site_url($game['link'])}">{$game['name']}</a>
											{if $game['is_hot'] == 1}
												<img alt="Hot" src="{url path="images/icon/hot.gif"}" />
											{/if}
											<!-- 
											{if $box_title =='online'}
											<font color="#FF0000">(Miễn phí)</font>
											{/if}
											-->
										</h2>
									</li>
									
									<li class="g-data-player">
										{if $game['dowload'] > 0}
										<img alt="Đang chơi" src="{url path="images/icon/playing.gif"}" />	
										{/if}
										{if $box_title =='offline'}
										<span class="g-play-value"> Thể loại: {$game['game_type_name']}</span>
										{else}
										{if $game['dowload'] > 0}
										<span class="g-play-value">{$game['dowload']} <b class="">Con zời</b> <span class="">chơi</span></span>
										{/if}
										{/if}
									</li>
									
									<!-- 
									<li class="g-dowload">
										<span class="dowload-label">Tải về: </span>
										{if $type_game != ''}
											{if $type_game=='java'}
												{if $game['file_jar']  != ''}
													<img alt="Dowload" src="{url path="images/icon/download.gif"}" />
													<a href="{site_url($game['download'])}?type=jar" title="Download file Jar" >Jar</a> 
												{/if}
												{if $game['file_jad']  != ''}
													<img alt="Dowload" src="{url path="images/icon/download.gif"}" />
													<a href="{site_url($game['download'])}?type=jad" title="Download file Jad" >Jad</a> 
												{/if}
												
											{else}
												{if $type_game=='android'}
													{if $game['file_android']  != ''}
														<img alt="Dowload" src="{url path="images/icon/download.gif"}" />
														<a href="{site_url($game['download'])}?type=android" title="Dowload for Android" >Android</a> 
													{/if}
												{else}
													{if $type_game=='ios'}
														{if $game['file_ios']  != ''}
															<img alt="Dowload" src="{url path="images/icon/download.gif"}" />
															<a href="{site_url($game['download'])}?type=ios" title="Dowload for iOs" >iOs</a> 
														{/if}
													{/if}
												{/if}
											{/if}
										{else}
											{if $game['file_jar']  != ''}
												<img alt="Dowload" src="{url path="images/icon/download.gif"}" />
												<a href="{site_url($game['download'])}?type=jar" title="Download file Jar" >Jar</a>
											{/if}
											{if $game['file_jad']  != ''}
												<img alt="Dowload" src="{url path="images/icon/download.gif"}" />
												<a href="{site_url($game['download'])}?type=jad" title="Download file Jad" >Jad</a> 
											{/if}
											
											{if $game['file_android']  != ''}
												<img alt="Dowload" src="{url path="images/icon/download.gif"}" />
												<a href="{site_url($game['download'])}?type=android" title="Dowload for Android" >Android</a> 
											{/if}
											{if $game['file_ios']  != ''}
												<img alt="Dowload" src="{url path="images/icon/download.gif"}" />
												<a href="{site_url($game['download'])}?type=ios" title="Dowload for iOs" >iOs</a>
											{/if}
										{/if}
									</li>
									-->
								</ol>
							</div>
						</div>
						<!-- 
						<div class="g-info">
							{$game['info']}
						</div>
						-->
					</div>
				</li>
			{/foreach}
			</ol>
			{if $pagination != ''}
			<div class="paper">
				{$pagination}
			</div>
			{/if}
		</div>
</div>
{/block}